//
//  HomeCellModel.h
//  MyBlog
//
//  Created by NCS on 16/12/7.
//  Copyright © 2016年 YSL. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface HomeCellModel : NSObject

@property (nonatomic, strong) NSIndexPath *indexPath;

@property (nonatomic, strong) NSString *avatar;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *time;
@property (nonatomic, strong) NSString *device;
@property (nonatomic, strong) NSString *content;
@property (nonatomic, strong) NSArray *images;
@property CGFloat cellHeight;

- (HomeCellModel *)initWithModel:(HomeCellModel *)model;
- (HomeCellModel *)initWithData:(NSDictionary *)data;
- (HomeCellModel *)initWithData:(NSDictionary *)data indexPath:(NSIndexPath *)indexPath;
- (HomeCellModel *)initWithData:(NSDictionary *)data height:(CGFloat)cellHeight;

@end
